package com.bluesky.android.webservice;

public class HandleXMLFactory {
	public enum HandlerType {
		GET_CHAPTER_IMAGE_LINK,
		GET_MANGA_COLLECTION,
		GET_MANGA_DETAIL
	}
	
	public static BaseHandler getHandler(HandlerType type){
		BaseHandler result = null;
		switch(type){
			case GET_CHAPTER_IMAGE_LINK:
				result = new MangaChapterDataHandle();
				break;
			case GET_MANGA_COLLECTION:
				result = new MangaCollectionDataHandle();
				break;
			case GET_MANGA_DETAIL:
				result = new MangaDetailDataHandle();
				break;
			default:
				break;
		}
		return result;
	}
}
